<?php

/* @var $factory \Illuminate\Database\Eloquent\Factory */

use App\Course;
use Faker\Generator as Faker;

$factory->define(Course::class, function (Faker $faker) {
    return [
        'title' => $faker->company,
        'price' => $faker->randomFloat(2, 0, 300),
        'status' => $faker->numberBetween(0,2),
        'train_time' => now(),
        'create_time' => now(),
        'section' => $faker -> randomElement($array = array ('腿部','胸部','腹部')),
        'admin_id' => $faker->numberBetween(1,5),
        'club_id' => $faker->numberBetween(1,5),
        'coach_id' => $faker->numberBetween(1,5)

    ];
});
